﻿using System;
using System.Collections.Generic;

using System.Text;

namespace WeFeTeLib
{
    class CookieEventArgs : EventArgs
    {
        int conditions;
        Cookie cookie;

        /// <summary>
        /// Constructor of the CookieEventArgs
        /// </summary>
        /// <param name="File">The Cookie object that was tested.</param>
        /// <param name="Conditions">The number of conditions that the cookie matched.</param>
        public CookieEventArgs(Cookie Cookie, int Conditions)
        {
            cookie = Cookie;
            conditions = Conditions;
        }

        /// <summary>
        /// The Cookie object
        /// </summary>
        public Cookie Cookie
        {
            get { return cookie; }
        }

        /// <summary>
        /// The number of conditions that the cookie matched.
        /// </summary>
        public int Conditions
        {
            get { return conditions; }
        }
    }
}
